appendChild

public abstract boolean appendChild(Node childNode)

Adds the given node as a child of the current node to the end of its children list. The new node could be an existing node in the document, or you can create and add a new node. If the node is existing node, it will be moved to a new location in the document.

Return

true if the given node was successfully inserted

Parameters

childNode

the node to append

Throws

when this node is closed